# $@ = target; $^ = dependencies; $< = first dependency

all : vcprj-make-jam.exe

# variables
objs=util.obj vcprj-make-jam.obj
cflags=/Zi

# build obj - cpp
%.obj : %.cpp
	cl $(cflags) /c $<
	
# build obj - header
vcprj-make-jam.obj : util.h
util.obj : util.h


# buld exe
vcprj-make-jam.exe : $(objs)

%.exe : 
	link /out:$@ $^


# clean and rebuild
clean:
	del util.obj vcprj-make-jam.obj vcprj-make-jam.exe 
	
rebuild: clean vcprj-make-jam.exe
